package com.gxa.medical.service;

import com.gxa.medical.exception.BusinessException;
import com.gxa.medical.pojo.Doctor;
import com.gxa.medical.pojo.DoctorAccount;

import java.util.List;

/**
 * @author Dusen
 * @date 2022/6/8 18:41
 */
public interface DoctorService {

   List<Doctor> selectAll();

   /**
    * 添加医生基本信息
    * @param doctor
    * @return
    */
   Integer insertDoctor(Doctor doctor);

   /**
    * 修改密码
    * @param doctorAccount
    * @return
    * @throws BusinessException
    */
   Integer updatePwd(DoctorAccount doctorAccount) throws BusinessException;
   /**
    * 登录
    * @param doctorAccount
    * @return
    */
   List<DoctorAccount> loginDoctor(DoctorAccount doctorAccount) throws BusinessException;

   List<Doctor> selectAll(Doctor doctor);
}
